﻿using System.ComponentModel;

namespace Magellan.ProjectWizards.Setup
{
    public class SetupModel : INotifyPropertyChanged
    {
        public SetupModel()
        {
            CopyLibraries = true;
            CreateTestProject = true;
        }

        public event PropertyChangedEventHandler PropertyChanged;

        public string LibraryDirectory { get; set; }
        public string TestProjectName { get; set; }
        private bool _copyLibraries;
        public bool CopyLibraries
        {
            get { return _copyLibraries; }
            set { _copyLibraries = value; OnPropertyChanged(new PropertyChangedEventArgs("CopyLibraries")); }
        }

        public bool CreateTestProject { get; set; }
        public string VersionNumber { get; set; }
        public string HelpUrl { get; set; }

        public bool Cancelled { get; set; }

        public void OnPropertyChanged(PropertyChangedEventArgs e)
        {
            var handler = PropertyChanged;
            if (handler != null) handler(this, e);
        }
    }
}